#ifndef	TRAP_H
#define	TRAP_H

#include <kernel/xtBase.h>

#define	TRAP_INDEX_RESET	0
#define	TRAP_INDEX_SWI		1
#define	TRAP_INDEX_UNDEF	2
#define	TRAP_INDEX_PABT		3
#define	TRAP_INDEX_DABT		4
#define	TRAP_INDEX_IRQ		5
#define	TRAP_INDEX_FIQ		6

extern "C" void Reset_Handler ();
extern "C" void SWI_Handler  ();
extern "C" void Undef_Handler  ();
extern "C" void PAbt_Handler  ();
extern "C" void DAbt_Handler  ();
extern "C" void IRQ_Handler  ();
extern "C" void FIQ_Handler  ();

class xtTrapController : public xtBaseObject
{
public:
	bool setTrapHandler (int trapNum, void (*handler)()) {return true;}
};

#endif
